package com.ruoyi.pmdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pmdata.mapper.EasPmdataMapper;
import com.ruoyi.pmdata.domain.EasPmdata;
import com.ruoyi.pmdata.service.IEasPmdataService;

/**
 * 设备PMService业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
@Service
public class EasPmdataServiceImpl implements IEasPmdataService 
{
    @Autowired
    private EasPmdataMapper easPmdataMapper;

    /**
     * 查询设备PM
     * 
     * @param ID 设备PM主键
     * @return 设备PM
     */
    @Override
    public EasPmdata selectEasPmdataByID(String ID)
    {
        return easPmdataMapper.selectEasPmdataByID(ID);
    }

    /**
     * 查询设备PM列表
     * 
     * @param easPmdata 设备PM
     * @return 设备PM
     */
    @Override
    public List<EasPmdata> selectEasPmdataList(EasPmdata easPmdata)
    {
        return easPmdataMapper.selectEasPmdataList(easPmdata);
    }

    /**
     * 新增设备PM
     * 
     * @param easPmdata 设备PM
     * @return 结果
     */
    @Override
    public int insertEasPmdata(EasPmdata easPmdata)
    {
        return easPmdataMapper.insertEasPmdata(easPmdata);
    }

    /**
     * 修改设备PM
     * 
     * @param easPmdata 设备PM
     * @return 结果
     */
    @Override
    public int updateEasPmdata(EasPmdata easPmdata)
    {
        return easPmdataMapper.updateEasPmdata(easPmdata);
    }

    /**
     * 批量删除设备PM
     * 
     * @param IDs 需要删除的设备PM主键
     * @return 结果
     */
    @Override
    public int deleteEasPmdataByIDs(String[] IDs)
    {
        return easPmdataMapper.deleteEasPmdataByIDs(IDs);
    }

    /**
     * 删除设备PM信息
     * 
     * @param ID 设备PM主键
     * @return 结果
     */
    @Override
    public int deleteEasPmdataByID(String ID)
    {
        return easPmdataMapper.deleteEasPmdataByID(ID);
    }
}
